package com.itheima.service;

import com.hmall.common.dto.PageDTO;
import com.itheima.pojo.ItemDoc;
import com.itheima.pojo.RequestParams;

import java.util.List;
import java.util.Map;

public interface ItemService  {

    List<String> getSuggestions(String key);

    Map<String, List<String>> getFilters(RequestParams params);

    PageDTO<ItemDoc> search(RequestParams params);

    void deleteById(Long id);

    void insertById(Long id);

}
